package com.shycloud.mido.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shycloud.mido.member.api.dto.MidoMasterDTO;
import com.shycloud.mido.member.api.entity.MemberActivateEntity;
import com.shycloud.mido.member.api.vo.MemberActivateEntityResp;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberActivateMapper extends BaseMapper<MemberActivateEntity> {

	int cleanMidoHardware(@Param("memberId") String memberId);

	/** 获取 mido 用户纠错大师信息 */
	List<MidoMasterDTO> getMidoMaster(@Param("memberId") String memberId);

	/** 查询UDID激活时间 */
	MemberActivateEntityResp getMidoMasterByUDIDLast(@Param("param") String udid,
			@Param("remark") String remark);

	/** 分页查询UDID历史记录 */
	IPage<MemberActivateEntityResp> pageMidoMasterByUDIDLast(IPage<MemberActivateEntityResp> page,
			@Param("param") String udid);

	/** 查询用户是否体验 */
	List<MemberActivateEntity> getBusiType3ByMemberId(@Param("param") String memberId);
}
